import { jwtDecode } from 'jwt-decode'
import type { JwtDecodeOptions } from 'jwt-decode'

export default function (token: string, option?: JwtDecodeOptions & { header: true }) {
  return jwtDecode(token, option)
}